package com.shishuo.cms.action.manage;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.shishuo.cms.auth.AuthPassport;
import com.shishuo.cms.service.UserService;

@Controller
@RequestMapping("/admin/user")
public class UserAction extends AdminBaseAction
{@Autowired
	private UserService userService;
	@AuthPassport
	@RequestMapping(value = "/page.htm", method = RequestMethod.GET)
	public String RolePage(@RequestParam(value = "p", defaultValue = "0") int pageNum,ModelMap modelMap) throws Exception {
		modelMap.put("pageVo", userService.getAllListPage(pageNum));
		return "system/user/all";
	}
}
